<!-- ./skins/tpl/assets/add_asset.tpl begin -->
<h2>Добавление актива</h2>
<?php echo getInfo($info); ?> 
<form action="" method="post">  
Актив:<br />
 <input class="caption" name="form[value2]" type="text" /><br /> 
Описание:<br />
 <textarea class="desc" name="form[value3]" ></textarea><br />

<?if(!empty($available_domains)):?>
<input id="check_all_domains" type="checkbox" name="form[value4]" onChange="checkStateDom()" checked/>все домены
<select id="select_domains" name="form[value5]" disabled>
	<?foreach($available_domains as $a_d_key => $a_d):?>
		<option value="<?=$a_d['d_id']?>"><?=$a_d['d_caption']?></option>
	<?endforeach?>
</select><br/>
<?endif?>

<script type="text/javascript">
function checkStateDom()
{
	checkBox = document.getElementById('check_all_domains');
	selectBox = document.getElementById('select_domains');
	if(checkBox.checked)
		selectBox.disabled = true;
	else
		selectBox.disabled = false;
}
</script>

<input name="ok" type="submit" value="Добавить"><br />
<br />  
</form>
<!-- ./skins/tpl/assets/add_asset.tpl end -->
